#include<stdlib.h>
#include<stdio.h>
#include<unistd.h>
#include<sys/types.h>
#include<time.h>

int main(int argc,char *argv[]){

    time_t t;
    struct tm *lt;

    t = time(NULL);
    lt = localtime(&t);

    printf("Current time is: %d-%d-%d %d:%d:%d\n", lt->tm_year+1900, lt->tm_mon+1, lt->tm_mday, lt->tm_hour, lt->tm_min, lt->tm_sec);
    printf("%d\n",lt->tm_mday);
    lt->tm_mday += 100;
    // lt->tm_hour += 24;
    printf("%d\n",lt->tm_mday);
    mktime(lt);
    printf("100天后的日期时间是：%d-%d-%d %d:%d:%d\n", lt->tm_year+1900, lt->tm_mon+1, lt->tm_mday, lt->tm_hour, lt->tm_min, lt->tm_sec);
    

    return 0;
}